<?php
namespace App\Models\Entity\wxbox;

use Swoft\Db\Model;
use Swoft\Db\Bean\Annotation\Column;
use Swoft\Db\Bean\Annotation\Entity;
use Swoft\Db\Bean\Annotation\Id;
use Swoft\Db\Bean\Annotation\Required;
use Swoft\Db\Bean\Annotation\Table;
use Swoft\Db\Types;

/**
 * @Entity()
 * @Table(name="app_jump")
 * @uses      AppJump
 */
class AppJump extends Model
{
    /**
     * @var int $id 
     * @Id()
     * @Column(name="id", type="integer")
     */
    private $id;

    /**
     * @var int $wxid 
     * @Column(name="wxid", type="integer")
     * @Required()
     */
    private $wxid;

    /**
     * @var string $name 名称
     * @Column(name="name", type="string", length=40)
     * @Required()
     */
    private $name;

    /**
     * @var string $action 
     * @Column(name="action", type="string", length=30)
     * @Required()
     */
    private $action;

    /**
     * @var string $method 跳转方式
     * @Column(name="method", type="string", length=4)
     * @Required()
     */
    private $method;

    /**
     * @var string $url 
     * @Column(name="url", type="string", length=150)
     * @Required()
     */
    private $url;

    /**
     * @var int $status 0关闭1正常
     * @Column(name="status", type="smallint", default=1)
     */
    private $status;

    /**
     * @param int $value
     * @return $this
     */
    public function setId(int $value)
    {
        $this->id = $value;

        return $this;
    }

    /**
     * @param int $value
     * @return $this
     */
    public function setWxid(int $value): self
    {
        $this->wxid = $value;

        return $this;
    }

    /**
     * 名称
     * @param string $value
     * @return $this
     */
    public function setName(string $value): self
    {
        $this->name = $value;

        return $this;
    }

    /**
     * @param string $value
     * @return $this
     */
    public function setAction(string $value): self
    {
        $this->action = $value;

        return $this;
    }

    /**
     * 跳转方式
     * @param string $value
     * @return $this
     */
    public function setMethod(string $value): self
    {
        $this->method = $value;

        return $this;
    }

    /**
     * @param string $value
     * @return $this
     */
    public function setUrl(string $value): self
    {
        $this->url = $value;

        return $this;
    }

    /**
     * 0关闭1正常
     * @param int $value
     * @return $this
     */
    public function setStatus(int $value): self
    {
        $this->status = $value;

        return $this;
    }

    /**
     * @return mixed
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @return int
     */
    public function getWxid()
    {
        return $this->wxid;
    }

    /**
     * 名称
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * @return string
     */
    public function getAction()
    {
        return $this->action;
    }

    /**
     * 跳转方式
     * @return string
     */
    public function getMethod()
    {
        return $this->method;
    }

    /**
     * @return string
     */
    public function getUrl()
    {
        return $this->url;
    }

    /**
     * 0关闭1正常
     * @return mixed
     */
    public function getStatus()
    {
        return $this->status;
    }

}
